
#
# Get Feature X/Y
# accepts an element from a SearchCursor object as input and returns a 1 dimensional 
# floating point array containing the X,Y coordinates of the input feature.

try:
  import arcpy
except ImportError:
  print "\nfailed to load arcpy module.  Are you using a workstation with ArcGIS 10 installed?\n"

def getXY(feature):
  
  toReturn = [0,0]
  points = feature.getPart()
  toReturn[0] = points.X
  toReturn[1] = points.Y
  
  return toReturn